﻿#ifndef SCRIPTITEM_H
#define SCRIPTITEM_H

#include <QObject>
#include <QDateTime>

/**
 * @brief The ScriptItem class 脚本类，一条指令可能包含多个脚本，脚本关注的信息比指令要少
 */
class ScriptItem : public QObject
{
    Q_OBJECT
public:
    enum PosType{
        Time_Start,
        Time_End,
        Pos_EWStart,
        Pos_EWEnd,
        Pos_NSStart,
        Pos_NSEnd,
        Pos_realEWstart,
        Pos_realEWend
    };

    explicit ScriptItem(const QString& sName,QObject *parent = 0);

    QString getName();

    void setValue(ScriptItem::PosType type,double value);
    double getValue(ScriptItem::PosType type);

signals:

public slots:

private:
    double mdStartTime;// 开始时间
    double mdEndTime;// 结束时间
    QString msName;// 名称
};

#endif // SCRIPTITEM_H
